﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CDSB.Indicators.Model
{
    public class CDSBFactoryIndicator
    {
        public string Factory { get; set; }
        public decimal DevelopedTasks { get; set; }
        public decimal TasksdeliveredLate { get; set; }
        public decimal TasksDeliveredOnDate { get; set; }
        public decimal TasksWithReturnOfCodeReview { get; set; }
        public decimal TasksAborted { get; set; }
        public decimal ConstructionTasksLastWorkingDay { get; set; }
        public decimal PlannedTasksLastWorkingDay { get; set; }
        public decimal BugsCount { get; set; }
        public decimal Scenarios { get; set; }

        private decimal _bugsAverage;
        public decimal BugsAverage
        {
            get 
            {
                return Math.Round((this.BugsCount/this.Scenarios), 2);
            }
            private set { _bugsAverage = value; }
        }
    }
}
